#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
int m,n;
int count1=0;
char filename[];
openfile();
closefile();
void main()
{
  char temp;
  char ch[8];
  int count2=0;
  openfile();
  /*while(read(m,&temp,1)!=0)
  {
    if(temp=='\n')
    {
      count2++;
      if(count2==count1)
      {
        goto A;
      }
    }
    
  }
  A:*/
  closefile();
}
openfile()
{
  scanf("-%d %s",&count1,filename);
  m=open(filename,O_RDONLY,0);
  if(m==-1)
  {
    printf("file open faild!\n");
  }
  /*else
  {
    printf("file open successful!\n");
  }*/
}
closefile()
{
  n=close(m);
  if(n==-1)
  {
    printf("file close faild!\n");
  }
  /*else
  {
    printf("file close successful!\n");
  }*/
}


